//驾驶舱总览-风场维度统计
import request from '@/utils/request'

/**
 * 查询总装机容量数据
 */
export function totalInstalledCapList() {
  return request({
    url: '/fjfd/windFarmCockpit/totalInstalledCapList',
    method: 'get'
  })
}

/**
 * 查询总功率列表数据
 */
export function totalPowerList() {
  return request({
    url: '/fjfd/windFarmCockpit/totalPowerList',
    method: 'get'
  })
}

/**
 * 查询发电功率趋势数据
 */
export function powerGenerationTrendList(windFarmId) {
  if(windFarmId==undefined){
    return request({
      url: '/fjfd/windFarmCockpit/powerGenerationTrendList',
      method: 'get'
    })
  }else{
    return request({
      url: '/fjfd/windFarmCockpit/powerGenerationTrendList?windFarmId=' + windFarmId,
      method: 'get'
    })
  }
  
}

/**
 * 查询发电量统计数据
 */
export function generationOutputStatistics(type) {
  return request({
    url: '/fjfd/windFarmCockpit/generationOutputStatistics?type=' + type,
    method: 'get'
  })
}

/**
 * 设备告警监测点击
 */
export function fjyxztList(query) {
  return request({
    url: '/fjfd/windFarmCockpit/fjyxztList',
    method: 'get',
    params: query
  })
}

/**
 * 查询设备告警监测
 */
export function devicesWarningData() {
  return request({
    url: '/fjfd/windFarmCockpit/devicesWarningData',
    method: 'get'
  })
}
export function getlistFarm() {
  return request({
    url: '/system/farm/getlistFarm',
    method: 'get'
  })
}


// /**
//  * 查询发电等效时列表数据
//  */
export function generationEquivalentHoursList() {
  return request({
    url: '/fjfd/windFarmCockpit/generationEquivalentHoursList',
    method: 'get'
  })
}

// /**
//  * 查询发电量趋势列表数据
//  */
export function electricityProductionTrendList(type) {
  return request({
    url: '/fjfd/windFarmCockpit/electricityProductionTrendList?type=' + type,
    method: 'get'
  })
}

// /**
//  * 运行排名点击
//  */
// 等效排名
export function dxpm(query) {
  return request({
    url: '/system/top/dxpm',
    method: 'get',
    params: query
  })
}

// 负荷率排名
export function fhlpm(query) {
  return request({
    url: '/system/top/fhlpm',
    method: 'get',
    params: query
  })
}

// 发电效率排名
export function fdlpm(query) {
  return request({
    url: '/system/top/fdlpm',
    method: 'get',
    params: query
  })
}

// 电站等效同比排名
export function dzdxtbpm(query) {
  return request({
    url: '/system/top/dzdxtbpm',
    method: 'get',
    params: query
  })
}

// 计划完成率排名
export function jhwclpm(query) {
  return request({
    url: '/system/top/jhwclpm',
    method: 'get',
    params: query
  })
}

// 查询大屏数据
export function queryDashboardData(id) {
  return request({
    url: '/system/farm/queryDashboardData?windFarmId=' + id,
    method: 'get'
  })
}

// 查询实时风机排行
export function findPowerRankList(id) {
  return request({
    url: '/system/farm/findPowerRankList?windFarmId=' + id,
    method: 'get'
  })
}
